const express = require('express')
const expressJoi = require('@escook/express-joi')
const router = express.Router()

const userHandler = require('../router_handle/login')
const { login_limit } = require('../limit/login')
router.post('/login',expressJoi(login_limit),userHandler.login)
router.post('/register',expressJoi(login_limit),userHandler.register)

module.exports = router